s = 'leetcode'
alert('vfdvfdv')
    // canPermutePalindrome(s);
var canPermutePalindrome = function(s) {
    var map = new Map();
    if (s) {
        var arr = s.split('')

    }
    for (let i = 0; i < arr.length; i++) {
        if (map.has(arr[i])) {
            map.set(arr[i], map.get(arr[i]) + 1);
            continue;
        }
        map.set(arr[i], 1)
    }
    var set = Object.keys(map)
    console.log('set次数', set);
    var nums = 0;
    for (let j = 0; j < set.size; j++) {
        if (map.get(set.get(j)) / 2 != 0) nums++;
    }
    if (nums > 1) return false;
    return true;
};
console.log("canPermutePalindrome" + canPermutePalindrome());